<?php

// [ 登出处理 ]

namespace app\common\logic;
use think\Session;
use think\Cookie;

class Logout
{
    public static function run()
    {
        // 清除Session
        Session::delete('member');

        // 写入Cookie
        Cookie::delete('memberId');
        Cookie::delete('memberRole');
        Cookie::delete('memberCert');

        return true;
    }
}